const gulp = require('gulp');
const exec = require('child_process').exec;


gulp.task('refresh', function (done) {
  console.log("----- ok -----");
  done();
});
gulp.task('watch-doc', (cb) => {
   gulp.watch('docs/swagger-ui.yml', function () {
    // return exec('php artisan doc:refresh', function (err, stdout, stderr) {
    //   console.log(stdout);
    //   console.log(stderr);
    //   return cb(err);
    // });
    return gulp.series("refresh")();
  })
});